public class CheckIfPrime {

	public int numberArray[]={1,3,10, -2146737495};
	public int prime=1;
		
	public CheckIfPrime(int[] numberArray){
		this.numberArray=numberArray;
	}
	
	
	public static boolean checkIfSingleNumberIsPrime(int prime){
		if(prime<0) return false;
		CalculatePrimes number = new CalculatePrimes(prime+2);
		return number.calculateUpToBound()[prime];
	}
	
	public String[] checkIfNumbersInArrayArePrime(){
		String[] stringArray = new String[numberArray.length];
		for(int x = 0; x<numberArray.length; x++) {
			stringArray[x] = String.format("%d: %b", numberArray[x], checkIfSingleNumberIsPrime(numberArray[x]));
		}
		return stringArray;
	}
}